<?php

namespace IDock\Insurance\ZFIC\Request;

use IDock\Insurance\ZFIC\Response\RenewalInquiryResponse;
use IDock\Visitor\RenewalInquiryVisitor;

class RenewalInquiryRequest extends AllZFICRequest
{

    protected $urlTip = '续保查询';

    protected $route = 'order/api/order/policyQuery';

    protected $response = RenewalInquiryResponse::class;

    /*** @var RenewalInquiryVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        return [
            'businessNo' => sha1(uniqid()),
            'policyNo' => '',
            'insuredName' => '',
            'licenseNo' => $this->visitor->licenseNo,
            'frameNo' => $this->visitor->vin,
            'engineNo' => $this->visitor->engineNo,

        ];
    }
}